package com.sun.boot.domain;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "car")
public class Car {

    @Value(value = "${car.brand:王五}")
    private String brand;
    private Integer price;
}
